﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B4F RID: 2895
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MMLBIBPHBPL : IMessage<MMLBIBPHBPL>, IMessage, IEquatable<MMLBIBPHBPL>, IDeepCloneable<MMLBIBPHBPL>, IBufferMessage
	{
		// Token: 0x1700248F RID: 9359
		// (get) Token: 0x06008176 RID: 33142 RVA: 0x00159BE9 File Offset: 0x00157DE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MMLBIBPHBPL> Parser
		{
			get
			{
				return MMLBIBPHBPL._parser;
			}
		}

		// Token: 0x17002490 RID: 9360
		// (get) Token: 0x06008177 RID: 33143 RVA: 0x00159BF0 File Offset: 0x00157DF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MMLBIBPHBPLReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002491 RID: 9361
		// (get) Token: 0x06008178 RID: 33144 RVA: 0x00159C02 File Offset: 0x00157E02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MMLBIBPHBPL.Descriptor;
			}
		}

		// Token: 0x06008179 RID: 33145 RVA: 0x00159C09 File Offset: 0x00157E09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MMLBIBPHBPL()
		{
		}

		// Token: 0x0600817A RID: 33146 RVA: 0x00159C11 File Offset: 0x00157E11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MMLBIBPHBPL(MMLBIBPHBPL other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600817B RID: 33147 RVA: 0x00159C42 File Offset: 0x00157E42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MMLBIBPHBPL Clone()
		{
			return new MMLBIBPHBPL(this);
		}

		// Token: 0x17002492 RID: 9362
		// (get) Token: 0x0600817C RID: 33148 RVA: 0x00159C4A File Offset: 0x00157E4A
		// (set) Token: 0x0600817D RID: 33149 RVA: 0x00159C52 File Offset: 0x00157E52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17002493 RID: 9363
		// (get) Token: 0x0600817E RID: 33150 RVA: 0x00159C5B File Offset: 0x00157E5B
		// (set) Token: 0x0600817F RID: 33151 RVA: 0x00159C63 File Offset: 0x00157E63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06008180 RID: 33152 RVA: 0x00159C6C File Offset: 0x00157E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MMLBIBPHBPL);
		}

		// Token: 0x06008181 RID: 33153 RVA: 0x00159C7A File Offset: 0x00157E7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MMLBIBPHBPL other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008182 RID: 33154 RVA: 0x00159CB8 File Offset: 0x00157EB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008183 RID: 33155 RVA: 0x00159D16 File Offset: 0x00157F16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008184 RID: 33156 RVA: 0x00159D1E File Offset: 0x00157F1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008185 RID: 33157 RVA: 0x00159D28 File Offset: 0x00157F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(104);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008186 RID: 33158 RVA: 0x00159D84 File Offset: 0x00157F84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008187 RID: 33159 RVA: 0x00159DDC File Offset: 0x00157FDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MMLBIBPHBPL other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008188 RID: 33160 RVA: 0x00159E2C File Offset: 0x0015802C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008189 RID: 33161 RVA: 0x00159E38 File Offset: 0x00158038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040031B2 RID: 12722
		private static readonly MessageParser<MMLBIBPHBPL> _parser = new MessageParser<MMLBIBPHBPL>(() => new MMLBIBPHBPL());

		// Token: 0x040031B3 RID: 12723
		private UnknownFieldSet _unknownFields;

		// Token: 0x040031B4 RID: 12724
		public const int AvatarTypeFieldNumber = 13;

		// Token: 0x040031B5 RID: 12725
		private AvatarType avatarType_;

		// Token: 0x040031B6 RID: 12726
		public const int AvatarIdFieldNumber = 7;

		// Token: 0x040031B7 RID: 12727
		private uint avatarId_;
	}
}
